'''
Created on Dec 16, 2010

@author: mwicat
'''


import sys, os, socket
import logging

on_symbian = sys.platform == 'symbian_s60'

def insert_lib_dirs():
    for path in ('c:\\data\\python\\lib', 'e:\\python\\lib'):
        if os.path.exists(path):
            sys.path.append(path)

if on_symbian:
    insert_lib_dirs()

from sniffylib.util import platform
    
def main():
    config = platform.load_config('config')
    platform.init_socket_logging(config)
    logger = logging.getLogger(__name__)
    try:
        config.frontend.run(config)
    except Exception, e:
        logger.exception(e)

if __name__ == "__main__":
    main()